package com.it;
import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @Author：Dream
 * @Package：com.it
 * @Project：demo
 * @name：ShiroMD5
 * @Date：2025/10/21 17:29
 * @Filename：ShiroMD5
 */
public class ShiroMD5 {
    public static void main(String[] args) {

        String password = "l4";

        Md5Hash md5Hash = new Md5Hash(password);

        System.out.println(md5Hash);
        Md5Hash md5Hash1 = new Md5Hash(password, "salt", 3);
        System.out.println(md5Hash1.toHex());
    }
}
